#ifndef __SUBMENU_H__
#define __SUBMENU_H__

#include "Application.h"
#include "Menu.h"
#include "ShapeContainer.h"
#include <conio.h>

using namespace std;

class SubMenu
{
	ShapeContainer* m_shapeCon;
	unsigned int m_index;
	unsigned int m_option;
	Application* m_app;
	void selection();
	void drawMenu() const;
	void getInput(){cout << "\tChoose an option: "; cin >> m_option;}
	bool legal(unsigned int option) const ;
	bool exit()const {return (m_option == 1 || m_option == 2) ? true : false;}
public:
	SubMenu( ShapeContainer* shapeCon1, const unsigned int& index1);
	~SubMenu();
	void run();
};

#endif

